package com.heyqing.topic.Merge_0088;

import java.util.Arrays;

/**
 * ClassName:Merge
 * Package:com.heyqing.topic.Merge_0088
 * Description:
 *
 * @Date:2024/9/11
 * @Author:Heyqing
 */
public class Merge {
    public void merge(int[] nums1, int m, int[] nums2, int n) {
        int count = 0;
        for (int i = m; i < m + n; i++) {
            nums1[i] = nums2[count++];
        }
        Arrays.sort(nums1);
    }
}
